package com.example.yunifang.fragment;

import com.example.yunifang.R;
import com.example.yunifang.XiangQingActivity;
import com.example.yunifang.adapter.XiangQingAdapter;
import com.example.yunifang.bean.XiangQingChildrenBean;
import com.example.yunifang.myview.MyListView;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class XiangQingFragment extends Fragment {

	private MyListView xiangqing_lv_item;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		View view=View.inflate(getActivity(), R.layout.xiangqingfragment, null);
		xiangqing_lv_item=(MyListView)view.findViewById(R.id.xiangqing_lv_item);
		XiangQingChildrenBean[] data=XiangQingActivity.bean2;
		XiangQingAdapter adapter=new XiangQingAdapter(data, getActivity());
		xiangqing_lv_item.setAdapter(adapter);
		return view;
	}
}
